var _EsdDynamicTransformationFunction = function($){
/**
* 命名空间定义
*/
var _EsdDynamicTransformationScript = {};
_EsdDynamicTransformationScript.navBlock = {}; // 定义区域跳转类
_EsdDynamicTransformationScript.navBlock.selector = {};
/**
* 文本链接 a
*/
//保证所有a标签都有href
$("a").each(function(){

var aHref = this.href;
if( aHref=="" || aHref==undefined ){
$(this).attr("href","javascript:void(0)");
}

//给a标签加title
var aTitle = this.title;
var aText = this.text;

if( aTitle=="" || aTitle==undefined ){
if( aText!="" || aText!=undefined ){
$(this).attr("title",$.trim(aText));
}
}

});

//select下的option添加title
$("option").each(function(){
var oTitle = this.title;
var oText = this.text;
if( oTitle=="" || oTitle==undefined ){
if( oText!="" || oText!=undefined ){
$(this).attr("title",$.trim(oText));
}
}
});





//搜索
$("#searchform1 .txtinput").attr("title","请输入关键字");
$("#searchform1 .txtinput").attr("placeholder","请输入关键字");
$("#searchform1 .btninput").attr("title","搜索");
/**
* 图片处理片段
*/


// img
$("img").each(function(){
// 给图片加alt/title
var imgAlt = this.alt,
imgTitle = this.title,
imgSrc = this.src,
parentText = this.parentElement.text;

if(this.alt=="" || this.alt==undefined){
if(imgTitle!="" && imgTitle!=undefined){
$(this).attr("alt",imgTitle);
}else if(parentText!="" && parentText!=undefined){
$(this).attr("alt",parentText);
}
}
if(this.title=="" || this.title==undefined){
if(imgAlt!="" && imgAlt!=undefined){
$(this).attr("title",imgAlt);
}else if(parentText!="" && parentText!=undefined){
$(this).attr("title",parentText);
}
}
})

$("img").each(function(){
if( (this.alt=="" && this.title=="")||(this.alt==undefined && this.title==undefined) ){
$(this).attr("title","图片");
$(this).attr("alt","图片");
}
})

$('img[src="./gdtp/201607/W020180127635067315715.jpg"]').attr('title','春运保平安 真情满人间').attr('alt','春运保平安 真情满人间');$('img[src="./images/ws_ewm__03.jpg"]').attr('title','二维码').attr('alt','二维码');$('img[src="./sjtb_1/sjtb/201912/W020191209533855978773.png"]').attr('title','2019年1-10月各地区单位工业增加值能耗降低率图表').attr('alt','2019年1-10月各地区单位工业增加值能耗降低率图表');$('img[src="./gxdt1/tpxw_1/201912/W020191203345709781912.jpg"]').attr('title','厅领导到包保帮扶村调研脱贫攻坚工作并宣讲十九届四中全会精神').attr('alt','厅领导到包保帮扶村调研脱贫攻坚工作并宣讲十九届四中全会精神');$('img[src="./jhapp/images/P020190305675290548863.png"]').attr('title','中国建设银行标识').attr('alt','中国建设银行标识');
$('img[src="./images/zfwb1_tm_03.png"]').attr('title','政务微博').attr('alt','政务微博');
$('img[src="./images/tzxx_tm_03.png"]').attr('title','厅长信箱').attr('alt','厅长信箱');$('img[src="./gxdt1/spxw/201910/W020191017383328691211.png"]').attr('title','【奋进正当时】一汽红旗电子电气研究所：做自主创新的前行者').attr('alt','【奋进正当时】一汽红旗电子电气研究所：做自主创新的前行者');$('img[src="./cszz/syztzl_78448/201705/W020170525401314713405.jpg"]').attr('title','推进“两学一做”学习教育常态化制度化').attr('alt','推进“两学一做”学习教育常态化制度化');$('img[src="./sjtb/201912/W020191206389608323889.png"]').attr('title','2019年1-10月市州规模以上工业增加值.png').attr('alt','2019年1-10月市州规模以上工业增加值.png');$('img[src="./sjtb_1/sjtb/201912/W020191209530783583344.png"]').attr('title','2019年10月各地区工业用电量完成情况图表').attr('alt','2019年10月各地区工业用电量完成情况图表');$('img[src="./sjtb/201911/W020191126516373660164.png"]').attr('title','2019年1-9月各地区单位工业增加值能耗降低率.png').attr('alt','2019年1-9月各地区单位工业增加值能耗降低率.png');$('img[src="./sjtb/201912/W020191209526770242290.png"]').attr('title','2019年10月全省工业生产者出厂价格指数.png').attr('alt','2019年10月全省工业生产者出厂价格指数.png');$('img[src="./gxdt1/tpxw_1/201910/W020191025545888402840.png"]').attr('title','常务副省长吴靖平一行到省工信厅开展调研').attr('alt','常务副省长吴靖平一行到省工信厅开展调研');$('img[src="http://pucha.kaipuyun.cn/exposure/images/jiucuo.png?v=2200000021"]').attr('title','无效图片').attr('alt','无效图片');$('img[src="./gdtp/201607/W020160703483385376132.jpg"]').attr('title','机关建设').attr('alt','机关建设');$('img[src="./gxdt1/spxw/201912/W020191202382908233748.png"]').attr('title','磐石市微晶石加工项目投产').attr('alt','磐石市微晶石加工项目投产');$('img[src="./sjtb/201911/W020191126514931818645.png"]').attr('title','2019年9月各地区工业用电量完成情况.png').attr('alt','2019年9月各地区工业用电量完成情况.png');$('img[src="./sjtb/201912/W020191206386225036423.png"]').attr('title','2019年1-10月全省规模以上工业增加值.png').attr('alt','2019年1-10月全省规模以上工业增加值.png');$('img[src="./images/ws_logo1_03.jpg"]').attr('title','认真 精准 协作 攻坚').attr('alt','认真 精准 协作 攻坚');$('img[src="./gxdt1/tpxw_1/201912/W020191227337470269922.png"]').attr('title','吉林省工业技术研究院成立助推吉林工业转型升级').attr('alt','吉林省工业技术研究院成立助推吉林工业转型升级');
$('img[src="./images/zxzx_tm_03.png"]').attr('title','在线咨询').attr('alt','在线咨询');$('img[src="./gxdt1/spxw/201908/W020190826553835880924.jpg"]').attr('title','巴音朝鲁 景俊海视察中国-东北亚博览会展馆展区').attr('alt','巴音朝鲁 景俊海视察中国-东北亚博览会展馆展区');
$('img[src="./images/zwwb_tm_03.png"]').attr('title','政务微博').attr('alt','政务微博');$('img[src="//dcs.conac.cn/image/red.png"]').attr('title','党政机关').attr('alt','党政机关');$('img[src="./gdtp/201906/W020190618591987098581.jpg"]').attr('title','不忘初心牢记使命').attr('alt','不忘初心牢记使命');$('img[src="./gxdt1/tpxw_1/201912/W020191202399844301862.png"]').attr('title','厅领导到白城市重点企业调研').attr('alt','厅领导到白城市重点企业调研');$('img[src="./gxdt1/spxw/201910/W020191010565002457441.png"]').attr('title','【数说吉林70年】第一辆高级轿车 风卷“红旗”过大关').attr('alt','【数说吉林70年】第一辆高级轿车 风卷“红旗”过大关');$('img[src="http://sthjt.jl.gov.cn/images/beianicon_lv20180129.png"]').attr('title','吉公网安备').attr('alt','吉公网安备');$('img[src="./sspf/201906/W020190618598798732508.jpg"]').attr('title','不忘初心牢记使命').attr('alt','不忘初心牢记使命');$('img[src="./gdtp/201912/W020191225498498714214.jpg"]').attr('title','安全生产').attr('alt','安全生产');
$('img[src="./images/xwfbh_tm_03.png"]').attr('title','新闻发布会').attr('alt','新闻发布会');$('img[src="./gxdt1/tpxw_1/201909/W020190916357264008303.jpg"]').attr('title','吉林省工业经济高质量发展座谈会在长春召开').attr('alt','吉林省工业经济高质量发展座谈会在长春召开');
$('img[src="./images/jdts_tm_03.png"]').attr('title','监督投诉').attr('alt','监督投诉');$('img[src="./gxdt1/spxw/201911/W020191118391303832381.png"]').attr('title','景俊海与中国中铁公司总裁陈云举行会谈').attr('alt','景俊海与中国中铁公司总裁陈云举行会谈');
$('img[src="./images/group.png"]').attr('title','民营企业投诉').attr('alt','民营企业投诉');
$('img[src="./images/yjzj_tm_03.png"]').attr('title','意见征集').attr('alt','意见征集');$('img[src="./images/wxgzpt_03.png"]').attr('title','微信公众平台二维码').attr('alt','微信公众平台二维码');$('img[src="./gxdt1/tpxw_1/201909/W020190924574391849283.jpg"]').attr('title','十一届省委第七轮巡视第八巡视组进驻省工业和信息化厅').attr('alt','十一届省委第七轮巡视第八巡视组进驻省工业和信息化厅');$('img[src="./ttxw/201912/W020191203339471059601.jpg"]').attr('title','厅领导到包保帮扶村调研脱贫攻坚工作并宣讲十九届四中全会精神').attr('alt','厅领导到包保帮扶村调研脱贫攻坚工作并宣讲十九届四中全会精神');$('img[src="./gdtp/201612/W020170802416432672223.jpg"]').attr('title','双公示').attr('alt','双公示');$('img[src="./sjtb/201912/W020191209528397303695.png"]').attr('title','2019年10月全省工业生产者购进价格指数.png').attr('alt','2019年10月全省工业生产者购进价格指数.png');
/**
* 共通头部
*/
/**
* 主导航
*/



// 头--------------对应的内容--------整个，头+内容---------第几个-----内容中的第一个a-----------上一个的所有---------上一个的内容第一个a
_EsdDynamicTransformationScript.navTabChange = function (focusObjSelector, listObjSelector, mouseEventObjSelector, keyDownNum, listElementsSelector, prevMouseEventObjSelector, prevListObjsSelector) {
var keydownName = "keydown.navKeydown_" + keyDownNum;
var keydownName2 = keydownName + "_1";
$(focusObjSelector).focus(function () {
if ($(listObjSelector).is(":hidden")) {
$(mouseEventObjSelector).mouseover();
}
$(this).bind(keydownName, function (e) {
if (e.shiftKey && e.keyCode == 9) {
if (prevMouseEventObjSelector != "") {
$(focusObjSelector).mouseout();
$(prevMouseEventObjSelector+" .ws_xlk").mouseover();
$(prevListObjsSelector).last().focus();
$(this).unbind(keydownName);  // 失去焦点时解绑有问题在这解绑一次
return false;
} else{
$(focusObjSelector).mouseout();
$(this).unbind(keydownName);  // 失去焦点时解绑有问题在这解绑一次
}
} else if (e.keyCode == 9) {

}
});

});
$(focusObjSelector).blur(function () {
$(this).unbind(keydownName);
});

$(listElementsSelector).last().focus(function () {
$(this).bind(keydownName2, function (e) {
if (e.shiftKey && e.keyCode == 9) {
} else if (e.keyCode == 9) {
$(mouseEventObjSelector).mouseout();
}
});
});
$(listElementsSelector).last().blur(function () {
$(this).unbind(keydownName2);
});
};


_EsdDynamicTransformationScript.navArray = new Array();

// 导航第一个栏目
_EsdDynamicTransformationScript.nav1 = {}
_EsdDynamicTransformationScript.nav1.focusObjSelector = "#nav .clearfix li.nLi:eq(1) .ws_s1 a"; // 按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav1.listObjSelector = "#nav .clearfix li.nLi:eq(1) .ws_xlk"; // 按tab聚焦后展示列表选择器
// 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav1.mouseEventObjSelector = "#nav .clearfix li.nLi:eq(1)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav1.keyDownNum = 1; // keydown事件标识 最好不要重复
_EsdDynamicTransformationScript.nav1.listElementsSelector = "#nav .clearfix li.nLi:eq(1) .ws_xlk a"; // 按tab聚焦后
// 展示列表中a链接的选择器(展示列表中第一个a标签)
_EsdDynamicTransformationScript.nav1.prevMouseEventObjSelector = ""; // 上一个相邻的鼠标事件(mouseover)的元素
// 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav1.prevListObjsSelector = ""; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArray.push(_EsdDynamicTransformationScript.nav1);  // 放到数组里循环

// 导航第二个栏目
_EsdDynamicTransformationScript.nav2 = {}
_EsdDynamicTransformationScript.nav2.focusObjSelector = "#nav .clearfix li.nLi:eq(2) .ws_s1 a"; // 按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav2.listObjSelector = "#nav .clearfix li.nLi:eq(2) .ws_xlk"; // 按tab聚焦后展示列表选择器
// 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav2.mouseEventObjSelector = "#nav .clearfix li.nLi:eq(2)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav2.keyDownNum = 2; // keydown事件标识 最好不要重复
_EsdDynamicTransformationScript.nav2.listElementsSelector = "#nav .clearfix li.nLi:eq(2) .ws_xlk a"; // 按tab聚焦后
// 展示列表中a链接的选择器
_EsdDynamicTransformationScript.nav2.prevMouseEventObjSelector = "#nav .clearfix li.nLi:eq(1)"; // 上一个相邻的鼠标事件(mouseover)的元素
// 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav2.prevListObjsSelector = "#nav .clearfix li.nLi:eq(1) .ws_xlk a"; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArray.push(_EsdDynamicTransformationScript.nav2);  // 放到数组里循环


// 导航第三个栏目
_EsdDynamicTransformationScript.nav3 = {}
_EsdDynamicTransformationScript.nav3.focusObjSelector = "#nav .clearfix li.nLi:eq(3) .ws_s1 a";


for(var i=0; i<_EsdDynamicTransformationScript.navArray.length; i++){
_EsdDynamicTransformationScript.navTabChange(_EsdDynamicTransformationScript.navArray[i].focusObjSelector, _EsdDynamicTransformationScript.navArray[i].listObjSelector,
_EsdDynamicTransformationScript.navArray[i].mouseEventObjSelector, _EsdDynamicTransformationScript.navArray[i].keyDownNum, _EsdDynamicTransformationScript.navArray[i].listElementsSelector,
_EsdDynamicTransformationScript.navArray[i].prevMouseEventObjSelector, _EsdDynamicTransformationScript.navArray[i].prevListObjsSelector);
}


_EsdDynamicTransformationScript.navArrayy = new Array();

// 导航第四个栏目
_EsdDynamicTransformationScript.nav4 = {}
_EsdDynamicTransformationScript.nav4.focusObjSelector = "#nav .clearfix li.nLi:eq(4) .ws_s1 a"; // 按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav4.listObjSelector = "#nav .clearfix li.nLi:eq(4) .ws_xlk"; // 按tab聚焦后展示列表选择器
// 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav4.mouseEventObjSelector = "#nav .clearfix li.nLi:eq(4)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav4.keyDownNum = 4; // keydown事件标识 最好不要重复
_EsdDynamicTransformationScript.nav4.listElementsSelector = "#nav .clearfix li.nLi:eq(4) .ws_xlk a"; // 按tab聚焦后
// 展示列表中a链接的选择器(展示列表中第一个a标签)
_EsdDynamicTransformationScript.nav4.prevMouseEventObjSelector = ""; // 上一个相邻的鼠标事件(mouseover)的元素
// 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav4.prevListObjsSelector = ""; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArrayy.push(_EsdDynamicTransformationScript.nav4);  // 放到数组里循环

// 导航第五个栏目
_EsdDynamicTransformationScript.nav5 = {}
_EsdDynamicTransformationScript.nav5.focusObjSelector = "#nav .clearfix li.nLi:eq(5) .ws_s1 a"; // 按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav5.listObjSelector = "#nav .clearfix li.nLi:eq(5) .ws_xlk"; // 按tab聚焦后展示列表选择器
// 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav5.mouseEventObjSelector = "#nav .clearfix li.nLi:eq(5)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav5.keyDownNum = 5; // keydown事件标识 最好不要重复
_EsdDynamicTransformationScript.nav5.listElementsSelector = "#nav .clearfix li.nLi:eq(5) .ws_xlk a"; // 按tab聚焦后
// 展示列表中a链接的选择器
_EsdDynamicTransformationScript.nav5.prevMouseEventObjSelector = "#nav .clearfix li.nLi:eq(4)"; // 上一个相邻的鼠标事件(mouseover)的元素
// 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav5.prevListObjsSelector = "#nav .clearfix li.nLi:eq(4) .ws_xlk a"; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArrayy.push(_EsdDynamicTransformationScript.nav5);  // 放到数组里循环

// 导航第六个栏目
_EsdDynamicTransformationScript.nav6 = {}
_EsdDynamicTransformationScript.nav6.focusObjSelector = "#nav .clearfix li.nLi:eq(6) .ws_s1 a"; // 按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav6.listObjSelector = "#nav .clearfix li.nLi:eq(6) .ws_xlk"; // 按tab聚焦后展示列表选择器
// 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav6.mouseEventObjSelector = "#nav .clearfix li.nLi:eq(6)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav6.keyDownNum = 6; // keydown事件标识 最好不要重复
_EsdDynamicTransformationScript.nav6.listElementsSelector = "#nav .clearfix li.nLi:eq(6) .ws_xlk a"; // 按tab聚焦后
// 展示列表中a链接的选择器
_EsdDynamicTransformationScript.nav6.prevMouseEventObjSelector = "#nav .clearfix li.nLi:eq(5)"; // 上一个相邻的鼠标事件(mouseover)的元素
// 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav6.prevListObjsSelector = "#nav .clearfix li.nLi:eq(5) .ws_xlk a"; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArrayy.push(_EsdDynamicTransformationScript.nav6);  // 放到数组里循环



for(var i=0; i<_EsdDynamicTransformationScript.navArrayy.length; i++){
_EsdDynamicTransformationScript.navTabChange(_EsdDynamicTransformationScript.navArrayy[i].focusObjSelector, _EsdDynamicTransformationScript.navArrayy[i].listObjSelector,
_EsdDynamicTransformationScript.navArrayy[i].mouseEventObjSelector, _EsdDynamicTransformationScript.navArrayy[i].keyDownNum, _EsdDynamicTransformationScript.navArrayy[i].listElementsSelector,
_EsdDynamicTransformationScript.navArrayy[i].prevMouseEventObjSelector, _EsdDynamicTransformationScript.navArrayy[i].prevListObjsSelector);
}


// 导航第三个的倒叙设置
$(_EsdDynamicTransformationScript.nav3.focusObjSelector).focus(function(){
$(this).bind("keydown.navKeydown_3", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(_EsdDynamicTransformationScript.nav2.focusObjSelector).mouseover();
$(_EsdDynamicTransformationScript.nav2.listElementsSelector).last().focus();
return false;
}
});
});

$(_EsdDynamicTransformationScript.nav3.focusObjSelector).blur(function(){
$(this).unbind("keydown.navKeydown_3");
});





// 二层

// 各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num1 = $(".ws_slideTxtBox .bd ul:eq(0) a").length-1;
_EsdDynamicTransformationScript.num2 = $(".ws_slideTxtBox .bd ul:eq(2) a").length-1;

// 各个选项名称
_EsdDynamicTransformationScript.esdTagNum1 = $(".ws_slideTxtBox .hd ul li:eq(0) a");
_EsdDynamicTransformationScript.esdTagNum2 = $(".ws_slideTxtBox .hd ul li:eq(1) a");

// 各个选项中的第一个内容
_EsdDynamicTransformationScript.esdTagNum1Content1 = $(".ws_slideTxtBox .bd ul:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esdTagNum2Content1 = $(".ws_slideTxtBox .bd ul:eq(2) a:eq(0)");

// 各个选项中的最后一个内容
_EsdDynamicTransformationScript.esdTagNum1ContentN = $(".ws_slideTxtBox .bd ul:eq(0) a:eq("+_EsdDynamicTransformationScript.num1+")");
_EsdDynamicTransformationScript.esdTagNum2ContentN = $(".ws_slideTxtBox .bd ul:eq(2) a:eq("+_EsdDynamicTransformationScript.num2+")");

// 第一块
_EsdDynamicTransformationScript.esdTagNum1.focus(function (e) {

e = $(this).mouseover();
$(this).bind("keydown.keydown_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagNum1Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esdTagNum1.blur(function () {

$(this).unbind("keydown.keydown_1");
});

_EsdDynamicTransformationScript.esdTagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown_s1");
});

_EsdDynamicTransformationScript.esdTagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown_e1");
});

// 第二块
_EsdDynamicTransformationScript.esdTagNum2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagNum1.mouseover();
_EsdDynamicTransformationScript.esdTagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagNum2Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagNum2.blur(function () {
$(this).unbind("keydown.keydown_2");
});



//导航，上一个的最后一个导入下一个的第一个
//第一个导第二个
$(_EsdDynamicTransformationScript.nav1.listElementsSelector).last().focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydownnl_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
$(_EsdDynamicTransformationScript.nav2.focusObjSelector).focus();
return false;
}
});
});
$(_EsdDynamicTransformationScript.nav1.listElementsSelector).last().blur(function () {
$(this).unbind("keydown.keydownnl_1");
});

//第二个导第三个
$(_EsdDynamicTransformationScript.nav2.listElementsSelector).last().focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydownnl_2", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
$(_EsdDynamicTransformationScript.nav3.focusObjSelector).focus();
return false;
}
});
});
$(_EsdDynamicTransformationScript.nav2.listElementsSelector).last().blur(function () {
$(this).unbind("keydown.keydownnl_2");
});

//第四个导第五个
$(_EsdDynamicTransformationScript.nav4.listElementsSelector).last().focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydownnl_4", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
$(_EsdDynamicTransformationScript.nav5.focusObjSelector).focus();
return false;
}
});
});
$(_EsdDynamicTransformationScript.nav4.listElementsSelector).last().blur(function () {
$(this).unbind("keydown.keydownnl_4");
});

//第五个导第六个
$(_EsdDynamicTransformationScript.nav5.listElementsSelector).last().focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydownnl_5", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
$(_EsdDynamicTransformationScript.nav6.focusObjSelector).focus();
return false;
}
});
});
$(_EsdDynamicTransformationScript.nav5.listElementsSelector).last().blur(function () {
$(this).unbind("keydown.keydownnl_5");
});

//第六个导轮播/面包屑导航
$(_EsdDynamicTransformationScript.nav6.listElementsSelector).last().focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydownnl_6", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {

if( $(".main a:eq(0)").length != 0 ){
$(".main a:eq(0)").focus();
$(_EsdDynamicTransformationScript.nav6.mouseEventObjSelector).mouseout();
return false;
}

}
});
});
$(_EsdDynamicTransformationScript.nav6.listElementsSelector).last().blur(function () {
$(this).unbind("keydown.keydownnl_6");
});







/**
* 网站所有幻灯片
*/


if(location.href=="http://gxt.jl.gov.cn/" || location.href=="http://gxt.jl.gov.cn/index.html"){
//首页

// 轮播,右下角原点--鼠标点击触发情况

// 轮播：只获取轮播中一个a标签。
// 以文字a标签为主，图片a标签尽量不要，title不稳定

// 轮播前的标签
_EsdDynamicTransformationScript.esdTagFrontNum1 = $(".itembox01 .slideTxtBox .hd ul li:eq(0) a");

// 文字A标签
_EsdDynamicTransformationScript.esdTagANum1 = $(".itembox01 .slideTxtBox .bd .focusBox .pic li:eq(0) a:eq(1)");
_EsdDynamicTransformationScript.esdTagANum2 = $(".itembox01 .slideTxtBox .bd .focusBox .pic li:eq(1) a:eq(1)");
_EsdDynamicTransformationScript.esdTagANum3 = $(".itembox01 .slideTxtBox .bd .focusBox .pic li:eq(2) a:eq(1)");
_EsdDynamicTransformationScript.esdTagANum4 = $(".itembox01 .slideTxtBox .bd .focusBox .pic li:eq(3) a:eq(1)");
_EsdDynamicTransformationScript.esdTagANum5 = $(".itembox01 .slideTxtBox .bd .focusBox .pic li:eq(4) a:eq(1)");

// 原点
_EsdDynamicTransformationScript.esdTagCircleNum1 = $(".itembox01 .slideTxtBox .bd .focusBox .num li:eq(0)");
_EsdDynamicTransformationScript.esdTagCircleNum2 = $(".itembox01 .slideTxtBox .bd .focusBox .num li:eq(1)");
_EsdDynamicTransformationScript.esdTagCircleNum3 = $(".itembox01 .slideTxtBox .bd .focusBox .num li:eq(2)");
_EsdDynamicTransformationScript.esdTagCircleNum4 = $(".itembox01 .slideTxtBox .bd .focusBox .num li:eq(3)");
_EsdDynamicTransformationScript.esdTagCircleNum5 = $(".itembox01 .slideTxtBox .bd .focusBox .num li:eq(4)");

// 第二个轮播前的标签(也就是第一个轮播后的标签)
_EsdDynamicTransformationScript.esd2TagFrontNum1 = $(".ws_right_xw h1 a");


// 轮播前的焦点
_EsdDynamicTransformationScript.esdTagFrontNum1.focus(function (e) {
$(this).mouseover();
$(this).bind("keydown.keydown_0", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(_EsdDynamicTransformationScript.nav6.focusObjSelector).mouseover();
$(_EsdDynamicTransformationScript.nav6.listElementsSelector).last().focus();
return false;
}else if (e.keyCode == 9) {
$(this).unbind("keydown.keydown_0");
_EsdDynamicTransformationScript.esdTagCircleNum1.click();
_EsdDynamicTransformationScript.esdTagANum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagFrontNum1.blur(function () {
$(this).unbind("keydown.keydown_0");
});

// 第一块
_EsdDynamicTransformationScript.esdTagANum1.focus(function (e) {
$(this).bind("keydown.keydown_1", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagFrontNum1.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum2.click();
_EsdDynamicTransformationScript.esdTagANum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagANum1.blur(function () {
$(this).unbind("keydown.keydown_1");
});

// 第二块
_EsdDynamicTransformationScript.esdTagANum2.focus(function (e) {
$(this).bind("keydown.keydown_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum1.click();
_EsdDynamicTransformationScript.esdTagANum1.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum3.click();
_EsdDynamicTransformationScript.esdTagANum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagANum2.blur(function () {
$(this).unbind("keydown.keydown_2");
});

// 第三块
_EsdDynamicTransformationScript.esdTagANum3.focus(function (e) {
$(this).bind("keydown.keydown_3", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum2.click();
_EsdDynamicTransformationScript.esdTagANum2.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum4.click();
_EsdDynamicTransformationScript.esdTagANum4.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagANum3.blur(function () {
$(this).unbind("keydown.keydown_3");
});

// 第四块
_EsdDynamicTransformationScript.esdTagANum4.focus(function (e) {
$(this).bind("keydown.keydown_4", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum3.click();
_EsdDynamicTransformationScript.esdTagANum3.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum5.click();
_EsdDynamicTransformationScript.esdTagANum5.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagANum4.blur(function () {
$(this).unbind("keydown.keydown_4");
});

// 第五块
_EsdDynamicTransformationScript.esdTagANum5.focus(function (e) {
$(this).bind("keydown.keydown_5", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum4.click();
_EsdDynamicTransformationScript.esdTagANum4.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagFrontNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagANum5.blur(function () {
$(this).unbind("keydown.keydown_5");
});

//轮播后的焦点
_EsdDynamicTransformationScript.esd2TagFrontNum1.focus(function (e) {
$(this).bind("keydown.keydown_6", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum5.click();
_EsdDynamicTransformationScript.esdTagANum5.focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd2TagFrontNum1.blur(function () {
$(this).unbind("keydown.keydown_6");
});

}

/**
* 主页js
*/



if(location.href=="http://gxt.jl.gov.cn/" || location.href=="http://gxt.jl.gov.cn/index.html"){
//首页

$(".main .links select:eq(0)").attr("title","全国工信系统");
$(".main .links select:eq(1)").attr("title","省政府部门");
$(".main .links select:eq(2)").attr("title","市州工信局");

// 将iframe所包含的a链接数 第一个a元素 最后一个a元素赋值给第一个参数的js对象
_EsdDynamicTransformationScript.getIframeInfos = function(jsObj,iframeObj){
jsObj.aLink_num = iframeObj.contentWindow.document.getElementsByTagName("a").length;
jsObj.first_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[0];
jsObj.last_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[jsObj.aLink_num-1];
jsObj.self = iframeObj;
};

// 声明iframe操作对象
_EsdDynamicTransformationScript.iframe1 = {};
_EsdDynamicTransformationScript.iframe2 = {};

//通过方法赋值
_EsdDynamicTransformationScript.iframeElement1 = document.getElementsByTagName("iframe")[1];   // 需要修改 这里的iframe获取
_EsdDynamicTransformationScript.iframeElement2 = document.getElementsByTagName("iframe")[2];   // 需要修改 这里的iframe获取


// 选项卡标签 jquery对象
_EsdDynamicTransformationScript.iframeTab1 = $(".itembox02r .zyxxzzbox .zz .xtit .hd ul li:eq(0) a");  // 需要修改
// 这里的tab获取
_EsdDynamicTransformationScript.iframeTab2 = $(".itembox02r .zyxxzzbox .zz .xtit .hd ul li:eq(1) a");  // 需要修改
// 这里的tab获取

//判断iframe是否有效
if((_EsdDynamicTransformationScript.iframeElement1!=undefined) && (_EsdDynamicTransformationScript.iframeElement2!=undefined)){

// 当iframe都加载完毕后执行代码 使用setInterval
_EsdDynamicTransformationScript.iframeInterval = setInterval(function(){

if((_EsdDynamicTransformationScript.iframeElement1.contentWindow.document.getElementsByTagName("a")[0]!=undefined)
&& (_EsdDynamicTransformationScript.iframeElement2.contentWindow.document.getElementsByTagName("a")[0]!=undefined) ){
clearInterval(_EsdDynamicTransformationScript.iframeInterval);

//通过方法赋值
_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe1,_EsdDynamicTransformationScript.iframeElement1);
_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe2,_EsdDynamicTransformationScript.iframeElement2);

// 第一个标签 切换
_EsdDynamicTransformationScript.iframeTab1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.iframeKeydown_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
//					$(this).unbind("keydown.iframeKeydown_1");
$(".main .itembox02 .itembox02l .ws_hdjl a:last").focus();
return false;
} else if (e.keyCode == 9) {
$(this).unbind("keydown.iframeKeydown_1");
$(_EsdDynamicTransformationScript.iframe1.self).focus();
return false;
}
});
});
_EsdDynamicTransformationScript.iframeTab1.blur(function () {
$(this).unbind("keydown.iframeKeydown_1");
});

// 第一个标签的第一个链接
$(_EsdDynamicTransformationScript.iframe1.first_aLink).focus(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_first1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab1.focus();
return false;
} else if (e.keyCode == 9) {

}
});
});
$(_EsdDynamicTransformationScript.iframe1.first_aLink).blur(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_first1");
});

// 第一个标签的最后一个链接
$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_last1", function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
$(this).trigger("blur");
_EsdDynamicTransformationScript.iframeTab2.mouseover();
_EsdDynamicTransformationScript.iframeTab2.focus();
return false;
}
});
});
$(_EsdDynamicTransformationScript.iframe1.last_aLink).blur(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_last1");
});

// 第二个标签切换
_EsdDynamicTransformationScript.iframeTab2.focus(function (e) {
$(this).bind("keydown.iframeKeydown_2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab1.mouseover();
$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab2.trigger("blur");
$(_EsdDynamicTransformationScript.iframe2.self).focus();
return false;
}
});
});
_EsdDynamicTransformationScript.iframeTab2.blur(function () {
$(this).unbind("keydown.iframeKeydown_2");
});

}

}, 500);

}





// //第二个轮播,右下角原点--鼠标点击触发情况
//
// //第二个轮播：只获取轮播中一个a标签。
// //以文字a标签为主，图片a标签尽量不要，title不稳定
//
// //第二个轮播前的标签
// // _EsdDynamicTransformationScript.esd2TagFrontNum1 = $(".itembox01
// .slideTxtBox .hd ul li:eq(1) a");
//
// //文字A标签(需要重新采集)
// _EsdDynamicTransformationScript.esd2TagANum1 = $(".itembox01 .slideTxtBox .bd
// .focusBox1 .txt li:eq(0) a");
// _EsdDynamicTransformationScript.esd2TagANum2 = $(".itembox01 .slideTxtBox .bd
// .focusBox1 .txt li:eq(1) a");
// _EsdDynamicTransformationScript.esd2TagANum3 = $(".itembox01 .slideTxtBox .bd
// .focusBox1 .txt li:eq(2) a");
// _EsdDynamicTransformationScript.esd2TagANum4 = $(".itembox01 .slideTxtBox .bd
// .focusBox1 .txt li:eq(3) a");
// _EsdDynamicTransformationScript.esd2TagANum5 = $(".itembox01 .slideTxtBox .bd
// .focusBox1 .txt li:eq(4) a");
//
// //原点(需要重新采集)
// _EsdDynamicTransformationScript.esd2TagCircleNum1 = $(".itembox01
// .slideTxtBox .bd .focusBox1 .num li:eq(0)");
// _EsdDynamicTransformationScript.esd2TagCircleNum2 = $(".itembox01
// .slideTxtBox .bd .focusBox1 .num li:eq(1)");
// _EsdDynamicTransformationScript.esd2TagCircleNum3 = $(".itembox01
// .slideTxtBox .bd .focusBox1 .num li:eq(2)");
// _EsdDynamicTransformationScript.esd2TagCircleNum4 = $(".itembox01
// .slideTxtBox .bd .focusBox1 .num li:eq(3)");
// _EsdDynamicTransformationScript.esd2TagCircleNum5 = $(".itembox01
// .slideTxtBox .bd .focusBox1 .num li:eq(4)");
//
// //第二个轮播后的标签
// _EsdDynamicTransformationScript.esd2TagAfterNum1 = $(".ws_right_xw h1 a");
//
//
// //第二个轮播前的焦点
// _EsdDynamicTransformationScript.esd2TagFrontNum1.focus(function (e) {
// $(this).mouseover();
// $(this).bind("keydown.keydown_10", function (e) {
// if(e.shiftKey&&e.keyCode==9){
// _EsdDynamicTransformationScript.esdTagFrontNum1.mouseover();
// _EsdDynamicTransformationScript.esdTagCircleNum5.click();
// _EsdDynamicTransformationScript.esdTagANum5.focus();
//
// return false;
// }else if (e.keyCode == 9) {
// _EsdDynamicTransformationScript.esd2TagCircleNum1.click();
// _EsdDynamicTransformationScript.esd2TagANum1.focus();
// console.log(document.activeElement);
// return false;
// }
// });
// });
// _EsdDynamicTransformationScript.esd2TagFrontNum1.blur(function () {
// $(this).unbind("keydown.keydown_10");
// });
//
//
//
// //第一块
// _EsdDynamicTransformationScript.esd2TagANum1.focus(function (e) {
//
// $(this).bind("keydown.keydown_11", function (e) {
// if(e.shiftKey&&e.keyCode==9){
//
// }else if (e.keyCode == 9) {
// _EsdDynamicTransformationScript.esd2TagCircleNum2.click();
// _EsdDynamicTransformationScript.esd2TagANum2.focus();
// console.log(document.activeElement);
// return false;
// }
// });
//
// });
// _EsdDynamicTransformationScript.esd2TagANum1.blur(function () {
// $(this).unbind("keydown.keydown_11");
// });
//
// //第二块
// _EsdDynamicTransformationScript.esd2TagANum2.focus(function (e) {
//
// $(this).bind("keydown.keydown_12", function (e) {
// if(e.shiftKey&&e.keyCode==9){
// _EsdDynamicTransformationScript.esd2TagCircleNum1.click();
// _EsdDynamicTransformationScript.esd2TagANum1.focus();
// return false;
// }else if (e.keyCode == 9) {
// _EsdDynamicTransformationScript.esd2TagCircleNum3.click();
// _EsdDynamicTransformationScript.esd2TagANum3.focus();
// console.log(document.activeElement);
// return false;
// }
// });
//
// });
// _EsdDynamicTransformationScript.esd2TagANum2.blur(function () {
// $(this).unbind("keydown.keydown_12");
// });
//
// //第三块
// _EsdDynamicTransformationScript.esd2TagANum3.focus(function (e) {
//
// $(this).bind("keydown.keydown_13", function (e) {
// if(e.shiftKey&&e.keyCode==9){
// _EsdDynamicTransformationScript.esd2TagCircleNum2.click();
// _EsdDynamicTransformationScript.esd2TagANum2.focus();
// return false;
// }else if (e.keyCode == 9) {
// _EsdDynamicTransformationScript.esd2TagCircleNum4.click();
// _EsdDynamicTransformationScript.esd2TagANum4.focus();
// console.log(document.activeElement);
// return false;
// }
// });
//
// });
// _EsdDynamicTransformationScript.esd2TagANum3.blur(function () {
// $(this).unbind("keydown.keydown_13");
// });
//
// //第四块
// _EsdDynamicTransformationScript.esd2TagANum4.focus(function (e) {
//
// $(this).bind("keydown.keydown_14", function (e) {
// if(e.shiftKey&&e.keyCode==9){
// _EsdDynamicTransformationScript.esd2TagCircleNum3.click();
// _EsdDynamicTransformationScript.esd2TagANum3.focus();
// return false;
// }else if (e.keyCode == 9) {
// _EsdDynamicTransformationScript.esd2TagCircleNum5.click();
// _EsdDynamicTransformationScript.esd2TagANum5.focus();
// console.log(document.activeElement);
// return false;
// }
// });
//
// });
// _EsdDynamicTransformationScript.esd2TagANum4.blur(function () {
// $(this).unbind("keydown.keydown_14");
// });
//
// //第五块
// _EsdDynamicTransformationScript.esd2TagANum5.focus(function (e) {
//
// $(this).bind("keydown.keydown_15", function (e) {
// if(e.shiftKey&&e.keyCode==9){
// _EsdDynamicTransformationScript.esd2TagCircleNum4.click();
// _EsdDynamicTransformationScript.esd2TagANum4.focus();
// return false;
// }else if (e.keyCode == 9) {
// _EsdDynamicTransformationScript.esd2TagAfterNum1.focus();
// return false;
// }
// });
//
// });
// _EsdDynamicTransformationScript.esd2TagANum5.blur(function () {
// $(this).unbind("keydown.keydown_15");
// });
//
// //轮播后的焦点
// _EsdDynamicTransformationScript.esd2TagAfterNum1.focus(function (e) {
//
// $(this).bind("keydown.keydown_16", function (e) {
// if(e.shiftKey&&e.keyCode==9){
// _EsdDynamicTransformationScript.esd2TagFrontNum1.focus();
// _EsdDynamicTransformationScript.esd2TagCircleNum5.click();
// _EsdDynamicTransformationScript.esd2TagANum5.focus();
// return false;
// }else if (e.keyCode == 9) {
//
// }
// });
//
// });
// _EsdDynamicTransformationScript.esd2TagAfterNum1.blur(function () {
// $(this).unbind("keydown.keydown_16");
// });





// 第二部分

// 各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num4 = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .bd .slidebox:eq(0) ul li").length-1;
_EsdDynamicTransformationScript.num5 = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .bd .slidebox:eq(1) ul li").length-1;
_EsdDynamicTransformationScript.num6 = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .bd .slidebox:eq(2) ul li").length-1;
_EsdDynamicTransformationScript.num7 = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .bd .slidebox:eq(3) ul li").length-1;

// 各个选项名称
_EsdDynamicTransformationScript.esd4TagNum1 = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .tit .hd ul li:eq(0) a");
_EsdDynamicTransformationScript.esd4TagNum2 = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .tit .hd ul li:eq(1) a");
_EsdDynamicTransformationScript.esd4TagNum3 = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .tit .hd ul li:eq(2) a");
_EsdDynamicTransformationScript.esd4TagNum4 = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .tit .hd ul li:eq(3) a");

// 各个选项中的第一个内容
_EsdDynamicTransformationScript.esd4TagNum1Content1 = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .bd .slidebox:eq(0) ul li a:eq(0)");
_EsdDynamicTransformationScript.esd4TagNum2Content1 = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .bd .slidebox:eq(1) ul li a:eq(0)");
_EsdDynamicTransformationScript.esd4TagNum3Content1 = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .bd .slidebox:eq(2) ul li a:eq(0)");
_EsdDynamicTransformationScript.esd4TagNum4Content1 = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .bd .slidebox:eq(3) ul li a:eq(0)");

// 各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd4TagNum1ContentN = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .bd .slidebox:eq(0) ul li:eq("+_EsdDynamicTransformationScript.num4+") a");
_EsdDynamicTransformationScript.esd4TagNum2ContentN = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .bd .slidebox:eq(1) ul li:eq("+_EsdDynamicTransformationScript.num5+") a");
_EsdDynamicTransformationScript.esd4TagNum3ContentN = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .bd .slidebox:eq(2) ul li:eq("+_EsdDynamicTransformationScript.num6+") a");
_EsdDynamicTransformationScript.esd4TagNum4ContentN = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .bd .slidebox:eq(3) ul li:eq("+_EsdDynamicTransformationScript.num7+") a");

// 第一块
_EsdDynamicTransformationScript.esd4TagNum1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum1Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum1.blur(function () {
$(this).unbind("keydown.keydown_1");
});

_EsdDynamicTransformationScript.esd4TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum1.focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd4TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown_s1");
});

_EsdDynamicTransformationScript.esd4TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
$(this).unbind("keydown.keydown_e1");
_EsdDynamicTransformationScript.esd4TagNum2.mouseover();
_EsdDynamicTransformationScript.esd4TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown_e1");
});

// 第二块
_EsdDynamicTransformationScript.esd4TagNum2.focus(function (e) {
$(this).bind("keydown.keydown_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd4TagNum1.mouseover();
_EsdDynamicTransformationScript.esd4TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum2Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum2.blur(function () {
$(this).unbind("keydown.keydown_2");
});

_EsdDynamicTransformationScript.esd4TagNum2Content1.focus(function () {
$(this).bind("keydown.keydown_s2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum2.focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd4TagNum2Content1.blur(function () {
$(this).unbind("keydown.keydown_s2");
});

_EsdDynamicTransformationScript.esd4TagNum2ContentN.focus(function () {
$(this).bind("keydown.keydown_e2", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
$(this).unbind("keydown.keydown_e2");
_EsdDynamicTransformationScript.esd4TagNum3.mouseover();
_EsdDynamicTransformationScript.esd4TagNum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum2ContentN.blur(function () {
$(this).unbind("keydown.keydown_e2");
});

// 第三块
_EsdDynamicTransformationScript.esd4TagNum3.focus(function (e) {
$(this).bind("keydown.keydown_3", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd4TagNum2.mouseover();
_EsdDynamicTransformationScript.esd4TagNum2ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum3Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum3.blur(function () {
$(this).unbind("keydown.keydown_3");
});

_EsdDynamicTransformationScript.esd4TagNum3Content1.focus(function () {
$(this).bind("keydown.keydown_s3", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum3.focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd4TagNum3Content1.blur(function () {
$(this).unbind("keydown.keydown_s3");
});

_EsdDynamicTransformationScript.esd4TagNum3ContentN.focus(function () {
$(this).bind("keydown.keydown_e3", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
$(this).unbind("keydown.keydown_e3");
_EsdDynamicTransformationScript.esd4TagNum4.mouseover();
_EsdDynamicTransformationScript.esd4TagNum4.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum3ContentN.blur(function () {
$(this).unbind("keydown.keydown_e3");
});

// 第四块
_EsdDynamicTransformationScript.esd4TagNum4.focus(function (e) {
$(this).bind("keydown.keydown_4", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd4TagNum3.mouseover();
_EsdDynamicTransformationScript.esd4TagNum3ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum4Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum4.blur(function () {
$(this).unbind("keydown.keydown_4");
});

// 第三部分

// 三层

// 各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num8 = $(".main .itembox02 .itembox02l .wjfgbox:eq(1) .bd .slidebox:eq(0) ul li").length-1;
_EsdDynamicTransformationScript.num9 = $(".main .itembox02 .itembox02l .wjfgbox:eq(1) .bd .slidebox:eq(1) ul li").length-1;
// _EsdDynamicTransformationScript.num10 = $(".main .itembox02 .itembox02l
// .wjfgbox:eq(1) .bd .slidebox:eq(2) ul li").length-1;

// 各个选项名称
_EsdDynamicTransformationScript.esd5TagNum1 = $(".main .itembox02 .itembox02l .wjfgbox:eq(1) .tit .hd ul li:eq(0) a");
_EsdDynamicTransformationScript.esd5TagNum2 = $(".main .itembox02 .itembox02l .wjfgbox:eq(1) .tit .hd ul li:eq(1) a");
_EsdDynamicTransformationScript.esd5TagNum3 = $(".main .itembox02 .itembox02l .wjfgbox:eq(1) .tit .hd ul li:eq(2) a");

// 各个选项中的第一个内容
_EsdDynamicTransformationScript.esd5TagNum1Content1 = $(".main .itembox02 .itembox02l .wjfgbox:eq(1) .bd .slidebox:eq(0) ul li:eq(0) a");
_EsdDynamicTransformationScript.esd5TagNum2Content1 = $(".main .itembox02 .itembox02l .wjfgbox:eq(1) .bd .slidebox:eq(1) ul li:eq(0) a");
// _EsdDynamicTransformationScript.esd5TagNum3Content1 = $(".main .itembox02
// .itembox02l .wjfgbox:eq(1) .bd .slidebox:eq(2) ul li:eq(0) a");

// 各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd5TagNum1ContentN = $(".main .itembox02 .itembox02l .wjfgbox:eq(1) .bd .slidebox:eq(0) ul li:eq("+_EsdDynamicTransformationScript.num8+") a");
_EsdDynamicTransformationScript.esd5TagNum2ContentN = $(".main .itembox02 .itembox02l .wjfgbox:eq(1) .bd .slidebox:eq(1) ul li:eq("+_EsdDynamicTransformationScript.num9+") a");
// _EsdDynamicTransformationScript.esd5TagNum3ContentN = $(".main .itembox02
// .itembox02l .wjfgbox:eq(1) .bd .slidebox:eq(2) ul
// li:eq("+_EsdDynamicTransformationScript.num10+") a");

// 外链接iframe之后的一个a标签
_EsdDynamicTransformationScript.esd5TagNum4Content1 = $(".itembox02 .itembox02l .ws_hdjl .tzxx  a");


// 第一块
_EsdDynamicTransformationScript.esd5TagNum1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd5TagNum1Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd5TagNum1.blur(function () {
$(this).unbind("keydown.keydown_1");
});

_EsdDynamicTransformationScript.esd5TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd5TagNum1.focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd5TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown_s1");
});

_EsdDynamicTransformationScript.esd5TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd5TagNum2.mouseover();
_EsdDynamicTransformationScript.esd5TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd5TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown_e1");
});

// 第二块
_EsdDynamicTransformationScript.esd5TagNum2.focus(function (e) {
$(this).bind("keydown.keydown_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd5TagNum1.mouseover();
_EsdDynamicTransformationScript.esd5TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd5TagNum2Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd5TagNum2.blur(function () {
$(this).unbind("keydown.keydown_2");
});

_EsdDynamicTransformationScript.esd5TagNum2Content1.focus(function () {
$(this).bind("keydown.keydown_s2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd5TagNum2.focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd5TagNum2Content1.blur(function () {
$(this).unbind("keydown.keydown_s2");
});

_EsdDynamicTransformationScript.esd5TagNum2ContentN.focus(function () {
$(this).bind("keydown.keydown_e2", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd5TagNum3.focus();
_EsdDynamicTransformationScript.esd5TagNum3.mouseover();
return false;
}
});
});
_EsdDynamicTransformationScript.esd5TagNum2ContentN.blur(function () {
$(this).unbind("keydown.keydown_e2");
});

// 第三块
_EsdDynamicTransformationScript.esd5TagNum3.focus(function (e) {
$(this).bind("keydown.keydown_3", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd5TagNum2.mouseover();
_EsdDynamicTransformationScript.esd5TagNum2ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd5TagNum4Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd5TagNum3.blur(function () {
$(this).unbind("keydown.keydown_3");
});

//倒切跳过外链接iframe
_EsdDynamicTransformationScript.esd5TagNum4Content1.focus(function (e) {
$(this).bind("keydown.keydown_4", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd5TagNum3.focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd5TagNum4Content1.blur(function () {
$(this).unbind("keydown.keydown_4");
});







}

/**
* 二级页
*/

// -------------------------------二级页------------------------------------


if(location.href=="http://gxt.jl.gov.cn/gxdt1/"){
// 工信动态

$(".main .links select:eq(0)").attr("title","市州工信局");
$(".main .links select:eq(1)").attr("title","友情链接");
$(".main .links select:eq(2)").attr("title","全国工信系统");
$(".main .links select:eq(3)").attr("title","省政府部门");


// 导航后的第一个a
_EsdDynamicTransformationScript.esdNavTag1 = $(".main a:eq(0)");


// 轮播前的标签
_EsdDynamicTransformationScript.esd2TagFrontNum1 = $(".main .itembox02 .gxdt .tit a:eq(0)");

// 文字A标签
_EsdDynamicTransformationScript.esd2TagANum1 = $(".main .itembox02 .gxdt .bm .left .txt ul li:eq(0) a");
_EsdDynamicTransformationScript.esd2TagANum2 = $(".main .itembox02 .gxdt .bm .left .txt ul li:eq(1) a");
_EsdDynamicTransformationScript.esd2TagANum3 = $(".main .itembox02 .gxdt .bm .left .txt ul li:eq(2) a");
_EsdDynamicTransformationScript.esd2TagANum4 = $(".main .itembox02 .gxdt .bm .left .txt ul li:eq(3) a");
_EsdDynamicTransformationScript.esd2TagANum5 = $(".main .itembox02 .gxdt .bm .left .txt ul li:eq(4) a");

// 原点
_EsdDynamicTransformationScript.esd2TagCircleNum1 = $(".main .itembox02 .gxdt .bm .left .num li:eq(0)");
_EsdDynamicTransformationScript.esd2TagCircleNum2 = $(".main .itembox02 .gxdt .bm .left .num li:eq(1)");
_EsdDynamicTransformationScript.esd2TagCircleNum3 = $(".main .itembox02 .gxdt .bm .left .num li:eq(2)");
_EsdDynamicTransformationScript.esd2TagCircleNum4 = $(".main .itembox02 .gxdt .bm .left .num li:eq(3)");
_EsdDynamicTransformationScript.esd2TagCircleNum5 = $(".main .itembox02 .gxdt .bm .left .num li:eq(4)");

// 轮播后的标签
_EsdDynamicTransformationScript.esd2TagFrontNum2 = $(".main .itembox02 .gxdt .bm .right a:eq(0)");


// 轮播前的焦点
_EsdDynamicTransformationScript.esd2TagFrontNum1.focus(function (e) {
$(this).mouseover();
$(this).bind("keydown.keydown2_0", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(_EsdDynamicTransformationScript.nav6.focusObjSelector).mouseover();
$(_EsdDynamicTransformationScript.nav6.listElementsSelector).last().focus();
return false;
}else if (e.keyCode == 9) {
$(this).trigger("blur");
_EsdDynamicTransformationScript.esd2TagFrontNum1.mouseover();
_EsdDynamicTransformationScript.esd2TagCircleNum1.click();
_EsdDynamicTransformationScript.esd2TagANum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd2TagFrontNum1.blur(function () {
$(this).unbind("keydown.keydown2_0");
});



// 第一块
_EsdDynamicTransformationScript.esd2TagANum1.focus(function (e) {

$(this).bind("keydown.keydown2_1", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd2TagFrontNum1.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagCircleNum2.click();
_EsdDynamicTransformationScript.esd2TagANum2.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd2TagANum1.blur(function () {
$(this).unbind("keydown.keydown2_1");
});

// 第二块
_EsdDynamicTransformationScript.esd2TagANum2.focus(function (e) {

$(this).bind("keydown.keydown2_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd2TagCircleNum1.click();
_EsdDynamicTransformationScript.esd2TagANum1.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagCircleNum3.click();
_EsdDynamicTransformationScript.esd2TagANum3.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd2TagANum2.blur(function () {
$(this).unbind("keydown.keydown2_2");
});

// 第三块
_EsdDynamicTransformationScript.esd2TagANum3.focus(function (e) {

$(this).bind("keydown.keydown2_3", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd2TagCircleNum2.click();
_EsdDynamicTransformationScript.esd2TagANum2.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagCircleNum4.click();
_EsdDynamicTransformationScript.esd2TagANum4.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd2TagANum3.blur(function () {
$(this).unbind("keydown.keydown2_3");
});

// 第四块
_EsdDynamicTransformationScript.esd2TagANum4.focus(function (e) {

$(this).bind("keydown.keydown2_4", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd2TagCircleNum3.click();
_EsdDynamicTransformationScript.esd2TagANum3.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagCircleNum5.click();
_EsdDynamicTransformationScript.esd2TagANum5.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd2TagANum4.blur(function () {
$(this).unbind("keydown.keydown2_4");
});

// 第五块
_EsdDynamicTransformationScript.esd2TagANum5.focus(function (e) {

$(this).bind("keydown.keydown2_5", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd2TagCircleNum4.click();
_EsdDynamicTransformationScript.esd2TagANum4.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagFrontNum2.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd2TagANum5.blur(function () {
$(this).unbind("keydown.keydown2_5");
});

// 轮播后的焦点

_EsdDynamicTransformationScript.esd2TagFrontNum2.focus(function (e) {

$(this).bind("keydown.keydown2_6", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd2TagCircleNum5.click();
_EsdDynamicTransformationScript.esd2TagANum5.focus();
return false;
}else if (e.keyCode == 9) {

}
});

});
_EsdDynamicTransformationScript.esd2TagFrontNum2.blur(function () {
$(this).unbind("keydown.keydown2_6");
});





// 将iframe所包含的a链接数 第一个a元素 最后一个a元素赋值给第一个参数的js对象
_EsdDynamicTransformationScript.getIframeInfos = function(jsObj,iframeObj){
jsObj.aLink_num = iframeObj.contentWindow.document.getElementsByTagName("a").length;
jsObj.first_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[0];
jsObj.last_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[jsObj.aLink_num-1];
jsObj.self = iframeObj;
};

// 声明iframe操作对象
_EsdDynamicTransformationScript.iframe1 = {};
_EsdDynamicTransformationScript.iframe2 = {};

//通过方法赋值
_EsdDynamicTransformationScript.iframeElement1 = document.getElementsByTagName("iframe")[0];   // 需要修改 这里的iframe获取
_EsdDynamicTransformationScript.iframeElement2 = document.getElementsByTagName("iframe")[1];   // 需要修改 这里的iframe获取


// 选项卡标签 jquery对象
_EsdDynamicTransformationScript.iframeTab1 = $(".itembox02r .zyxxzzbox .zz .xtit .hd ul li:eq(0) a");  // 需要修改
// 这里的tab获取
_EsdDynamicTransformationScript.iframeTab2 = $(".itembox02r .zyxxzzbox .zz .xtit .hd ul li:eq(1) a");  // 需要修改
// 这里的tab获取

//判断iframe是否有效
if((_EsdDynamicTransformationScript.iframeElement1!=undefined) && (_EsdDynamicTransformationScript.iframeElement2!=undefined)){

// 当iframe都加载完毕后执行代码 使用setInterval
_EsdDynamicTransformationScript.iframeInterval = setInterval(function(){

if((_EsdDynamicTransformationScript.iframeElement1.contentWindow.document.getElementsByTagName("a")[0]!=undefined)
&& (_EsdDynamicTransformationScript.iframeElement2.contentWindow.document.getElementsByTagName("a")[0]!=undefined) ){
clearInterval(_EsdDynamicTransformationScript.iframeInterval);

//通过方法赋值
_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe1,_EsdDynamicTransformationScript.iframeElement1);
_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe2,_EsdDynamicTransformationScript.iframeElement2);


// 第一个标签 切换
_EsdDynamicTransformationScript.iframeTab1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.iframeKeydown_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
//			            $(this).trigger("blur");
} else if (e.keyCode == 9) {
$(this).trigger("blur");
$(_EsdDynamicTransformationScript.iframe1.self).focus();
return false;
}
});
});
_EsdDynamicTransformationScript.iframeTab1.blur(function () {
$(this).unbind("keydown.iframeKeydown_1");
});

// 第一个标签的第一个链接
$(_EsdDynamicTransformationScript.iframe1.first_aLink).focus(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_first1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(this).trigger("blur");
_EsdDynamicTransformationScript.iframeTab1.focus();
return false;
} else if (e.keyCode == 9) {
}
});
});
$(_EsdDynamicTransformationScript.iframe1.first_aLink).blur(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_first1");
});

// 第一个标签的最后一个链接
$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_last1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
} else if (e.keyCode == 9) {
$(this).trigger("blur");
_EsdDynamicTransformationScript.iframeTab2.focus();
return false;
}
});
});
$(_EsdDynamicTransformationScript.iframe1.last_aLink).blur(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_last1");
});


// 第二个标签切换
_EsdDynamicTransformationScript.iframeTab2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.iframeKeydown_2", function (e) {
if (e.shiftKey && e.keyCode == 9) {

_EsdDynamicTransformationScript.iframeTab1.mouseover();
$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus();
return false;
} else if (e.keyCode == 9) {
$(this).trigger("blur");
$(_EsdDynamicTransformationScript.iframe2.self).focus();
return false;
}
});

});
_EsdDynamicTransformationScript.iframeTab2.blur(function () {
$(this).unbind("keydown.iframeKeydown_2");
});

}

}, 500);

}

// 三级选项卡

// 各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num4 = $(".itembox02l .nynewbox .bd .slidebox:eq(0) ul a").length-1;
_EsdDynamicTransformationScript.num5 = $(".itembox02l .nynewbox .bd .slidebox:eq(1) ul a").length-1;
_EsdDynamicTransformationScript.num6 = $(".itembox02l .nynewbox .bd .slidebox:eq(2) ul a").length-1;

// 各个选项名称
_EsdDynamicTransformationScript.esd3TagNum1 = $(".itembox02l .nynewbox .tit .hd ul li:eq(0) a");
_EsdDynamicTransformationScript.esd3TagNum2 = $(".itembox02l .nynewbox .tit .hd ul li:eq(1) a");
_EsdDynamicTransformationScript.esd3TagNum3 = $(".itembox02l .nynewbox .tit .hd ul li:eq(2) a");

// 各个选项中的第一个内容
_EsdDynamicTransformationScript.esd3TagNum1Content1 = $(".itembox02l .nynewbox .bd .slidebox:eq(0) ul a:eq(0)");
_EsdDynamicTransformationScript.esd3TagNum2Content1 = $(".itembox02l .nynewbox .bd .slidebox:eq(1) ul a:eq(0)");
_EsdDynamicTransformationScript.esd3TagNum3Content1 = $(".itembox02l .nynewbox .bd .slidebox:eq(2) ul a:eq(0)");

// 各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd3TagNum1ContentN = $(".itembox02l .nynewbox .bd .slidebox:eq(0) ul a:eq("+_EsdDynamicTransformationScript.num4+")");
_EsdDynamicTransformationScript.esd3TagNum2ContentN = $(".itembox02l .nynewbox .bd .slidebox:eq(1) ul a:eq("+_EsdDynamicTransformationScript.num5+")");
_EsdDynamicTransformationScript.esd3TagNum3ContentN = $(".itembox02l .nynewbox .bd .slidebox:eq(2) ul a:eq("+_EsdDynamicTransformationScript.num6+")");

// 第一块
_EsdDynamicTransformationScript.esd3TagNum1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown3_1", function (e) {
if(e.shiftKey&&e.keyCode==9){
// $(this).trigger("blur");
}else if (e.keyCode == 9) {
//				$(this).trigger("blur");
_EsdDynamicTransformationScript.esd3TagNum1Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd3TagNum1.blur(function () {
$(this).unbind("keydown.keydown3_1");
});

_EsdDynamicTransformationScript.esd3TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown3_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
// 				$(this).trigger("blur");
_EsdDynamicTransformationScript.esd3TagNum1.focus();
return false;
}else if (e.keyCode == 9) {
//				$(this).trigger("blur");
}
});
});
_EsdDynamicTransformationScript.esd3TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown3_s1");
});

_EsdDynamicTransformationScript.esd3TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown3_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){
//				$(this).trigger("blur");
}else if (e.keyCode == 9) {
//				$(this).trigger("blur");
_EsdDynamicTransformationScript.esd3TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd3TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown3_e1");
});
// 第二块
_EsdDynamicTransformationScript.esd3TagNum2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown3_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
// $(this).trigger("blur");
_EsdDynamicTransformationScript.esd3TagNum1.mouseover();
_EsdDynamicTransformationScript.esd3TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
//				$(this).trigger("blur");
_EsdDynamicTransformationScript.esd3TagNum2Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd3TagNum2.blur(function () {
$(this).unbind("keydown.keydown3_2");
});

_EsdDynamicTransformationScript.esd3TagNum2Content1.focus(function () {
$(this).bind("keydown.keydown3_s2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
// $(this).trigger("blur");
_EsdDynamicTransformationScript.esd3TagNum2.focus();
return false;
}else if (e.keyCode == 9) {
//				$(this).trigger("blur");
}
});
});

_EsdDynamicTransformationScript.esd3TagNum2Content1.blur(function () {
$(this).unbind("keydown.keydown3_s2");
});

_EsdDynamicTransformationScript.esd3TagNum2ContentN.focus(function () {
$(this).bind("keydown.keydown3_e2", function (e) {
if(e.shiftKey&&e.keyCode==9){
//				$(this).trigger("blur");
}else if (e.keyCode == 9) {
//				$(this).trigger("blur");
_EsdDynamicTransformationScript.esd3TagNum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd3TagNum2ContentN.blur(function () {
$(this).unbind("keydown.keydown3_e2");
});

// 第三块
_EsdDynamicTransformationScript.esd3TagNum3.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown3_3", function (e) {
if(e.shiftKey&&e.keyCode==9){
// $(this).trigger("blur");
_EsdDynamicTransformationScript.esd3TagNum2.mouseover();
_EsdDynamicTransformationScript.esd3TagNum2ContentN.focus();
return false;
}else if (e.keyCode == 9) {
//				$(this).trigger("blur");
_EsdDynamicTransformationScript.esd3TagNum3Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd3TagNum3.blur(function () {
$(this).unbind("keydown.keydown3_3");
});

_EsdDynamicTransformationScript.esd3TagNum3Content1.focus(function () {
$(this).bind("keydown.keydown3_s3", function (e) {
if (e.shiftKey && e.keyCode == 9) {
// $(this).trigger("blur");
_EsdDynamicTransformationScript.esd3TagNum3.focus();
return false;
}else if (e.keyCode == 9) {
//				$(this).trigger("blur");
}
});
});

_EsdDynamicTransformationScript.esd3TagNum3Content1.blur(function () {
$(this).unbind("keydown.keydown3_s3");
});



}


if(location.href=="http://gxt.jl.gov.cn/ggfw/"){
// 公共服务

// 导航后的第一个a
_EsdDynamicTransformationScript.esdNavTag1 = $(".main a:eq(0)");


// 导航之后的第一个a
_EsdDynamicTransformationScript.esdNavTag1.focus(function (e) {
$(this).bind("keydown.keydown0_0", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(_EsdDynamicTransformationScript.nav6.focusObjSelector).mouseover();
$(_EsdDynamicTransformationScript.nav6.listElementsSelector).last().focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esdNavTag1.blur(function () {
$(this).unbind("keydown.keydown0_0");
});


// 三级选项卡（一二都是外域iframe，只跳三---》不用代码，自然走就行）

// 各个选项名称
_EsdDynamicTransformationScript.esd3TagNum0 = $(".bsfw_ly .wjfgbox .tit .hd ul li:eq(0) a");
_EsdDynamicTransformationScript.esd3TagNum1 = $(".bsfw_ly .wjfgbox .tit .hd ul li:eq(1) a");
_EsdDynamicTransformationScript.esd3TagNum2 = $(".bsfw_ly .wjfgbox .tit .hd ul li:eq(2) a");

// 各个选项中的第一个内容
_EsdDynamicTransformationScript.esd3TagNum1Content0 = $(".bsfw_ly .wjfgbox .bd .slidebox:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd3TagNum1Content1 = $(".bsfw_ly .wjfgbox .bd .slidebox:eq(1) a:eq(0)");
_EsdDynamicTransformationScript.esd3TagNum2Content1 = $(".bsfw_ly .wjfgbox .bd .slidebox:eq(2) a:eq(0)");

// 各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd3TagNum0ContentN = $(".bsfw_ly .wjfgbox .bd .slidebox:eq(0) a:last");
_EsdDynamicTransformationScript.esd3TagNum1ContentN = $(".bsfw_ly .wjfgbox .bd .slidebox:eq(1) a:last");
_EsdDynamicTransformationScript.esd3TagNum2ContentN = $(".bsfw_ly .wjfgbox .bd .slidebox:eq(2) a:last");

// 第一块
_EsdDynamicTransformationScript.esd3TagNum0.focus(function (e) {
$(this).bind("keydown.keydown3_0", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd3TagNum0.blur(function () {
$(this).unbind("keydown.keydown3_0");
});

// 第二块
_EsdDynamicTransformationScript.esd3TagNum1.focus(function (e) {
$(this).bind("keydown.keydown3_1", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd3TagNum0.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum2.mouseover();
_EsdDynamicTransformationScript.esd3TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd3TagNum1.blur(function () {
$(this).unbind("keydown.keydown3_1");
});

// 第三块
_EsdDynamicTransformationScript.esd3TagNum2.focus(function (e) {
$(this).bind("keydown.keydown3_1", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd3TagNum1.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum2Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd3TagNum2.blur(function () {
$(this).unbind("keydown.keydown3_2");
});

_EsdDynamicTransformationScript.esd3TagNum2Content1.focus(function (e) {
$(this).bind("keydown.keydown3_1", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd3TagNum2.focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd3TagNum2Content1.blur(function () {
$(this).unbind("keydown.keydown3_2");
});


}


if(location.href=="http://gxt.jl.gov.cn/xxgk/jgzn/" || location.href=="http://gxt.jl.gov.cn/hdjl/" || location.href=="http://gxt.jl.gov.cn/sjtb_1/" || location.href=="http://gxt.jl.gov.cn/gdtp/"){
// 导航的其它二级页


// 导航后的第一个a
_EsdDynamicTransformationScript.esdNavTag1 = $(".main a:eq(0)");


// 导航之后的第一个a
_EsdDynamicTransformationScript.esdNavTag1.focus(function (e) {
$(this).bind("keydown.keydown0_0", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(_EsdDynamicTransformationScript.nav6.focusObjSelector).mouseover();
$(_EsdDynamicTransformationScript.nav6.listElementsSelector).last().focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esdNavTag1.blur(function () {
$(this).unbind("keydown.keydown0_0");
});


}



if(location.href=="http://gxt.jl.gov.cn/hdjl/myqyts/"){
// 民营企业投诉信箱

_EsdDynamicTransformationScript.slidePointIntervalts = setInterval(function () {
if ( document.getElementsByTagName("iframe")[0].contentWindow.document.getElementById("SubmitButton") != undefined ) {
clearInterval(_EsdDynamicTransformationScript.slidePointIntervalts);

var inputIframe = document.getElementsByTagName("iframe")[0].contentWindow.document;
$(inputIframe).find("#frmData input:eq(0)").attr({placeholder:"姓名",title:"姓名"});
$(inputIframe).find("#frmData input:eq(1)").attr({placeholder:"联系电话",title:"联系电话"});
$(inputIframe).find("#frmData input:eq(2)").attr({placeholder:"所属地区及企业名称",title:"所属地区及企业名称"});
$(inputIframe).find("#frmData input:eq(3)").attr({placeholder:"电子邮箱",title:"电子邮箱"});
$(inputIframe).find("#frmData input:eq(4)").attr({placeholder:"通迅地址",title:"通迅地址"});
$(inputIframe).find("#frmData textarea").attr({placeholder:"投诉内容",title:"投诉内容"});

$(inputIframe).find("#SubmitButton").attr("title","提交");
$(inputIframe).find("#ResetButton").attr("title","重置");

}
}, 500);
}

if(location.href=="http://gxt.jl.gov.cn/hdjl/zxzxx/zxzx.html"){
// 在线咨询

document.getElementsByClassName("xdTextBox")[0].title = "咨询人";
document.getElementsByClassName("xdTextBox")[0].placeholder = "咨询人";
document.getElementsByClassName("xdTextBox")[1].title = "联系电话";
document.getElementsByClassName("xdTextBox")[1].placeholder = "联系电话";
document.getElementsByClassName("xdTextBox")[2].title = "通讯地址";
document.getElementsByClassName("xdTextBox")[2].placeholder = "通讯地址";
document.getElementsByClassName("xdTextBox")[3].title = "电子邮箱";
document.getElementsByClassName("xdTextBox")[3].placeholder = "电子邮箱";
document.getElementsByClassName("xdTextBox")[4].title = "标题";
document.getElementsByClassName("xdTextBox")[4].placeholder = "标题";
document.getElementsByClassName("xdTextBox")[5].title = "咨询内容";
document.getElementsByClassName("xdTextBox")[5].placeholder = "咨询内容";

document.getElementById("SubmitButton").title = "提交";
document.getElementById("ResetButton").title = "重置";

}

if(location.href=="http://gxt.jl.gov.cn/hdjl/tzxx_1/tz/"){
// 厅长信箱
var inputIframe = document.getElementsByTagName("iframe")[0].contentWindow.document;
var inputIframe1 = inputIframe.getElementsByTagName("iframe")[0].contentWindow.document;

inputIframe1.getElementsByClassName("xdTextBox")[0].title = "标题";
inputIframe1.getElementsByClassName("xdTextBox")[0].placeholder = "标题";
inputIframe1.getElementsByClassName("xdTextBox")[1].title = "姓名";
inputIframe1.getElementsByClassName("xdTextBox")[1].placeholder = "姓名";
inputIframe1.getElementsByClassName("xdTextBox")[2].title = "联系电话";
inputIframe1.getElementsByClassName("xdTextBox")[2].placeholder = "联系电话";
inputIframe1.getElementsByClassName("xdTextBox")[3].title = "电子邮箱";
inputIframe1.getElementsByClassName("xdTextBox")[3].placeholder = "电子邮箱";
inputIframe1.getElementsByClassName("xdTextBox")[4].title = "通讯地址";
inputIframe1.getElementsByClassName("xdTextBox")[4].placeholder = "通讯地址";
inputIframe1.getElementsByClassName("xdRichTextBox")[0].title = "内容";
inputIframe1.getElementsByClassName("xdRichTextBox")[0].placeholder = "内容";
inputIframe1.getElementsByClassName("xdBehavior_Boolean")[0].title = "公开";
inputIframe1.getElementsByClassName("xdBehavior_Boolean")[0].placeholder = "公开";
inputIframe1.getElementsByClassName("xdBehavior_Boolean")[1].title = "不公开";
inputIframe1.getElementsByClassName("xdBehavior_Boolean")[1].placeholder = "不公开";

inputIframe1.getElementById("SubmitButton").title = "提交";
inputIframe1.getElementById("ResetButton").title = "重置";

}













/**
* 共通底部处理
*/
/**
* 文本链接 a
*/
//	_EsdDynamicTransformationScript.navBlock = {}; //定义区域跳转类
//	_EsdDynamicTransformationScript.navBlock.debug = true; //是否是调试模式，调试模式有红边线，非调试模式关闭红边框
//	//定义跳转 使用jquery选择器语法
//	_EsdDynamicTransformationScript.navBlock.selector = {};

$(".header .top").attr("id","header");
_EsdDynamicTransformationScript.navBlock.selector.top = "#header";
$(".header .nav").attr("id","nav");
_EsdDynamicTransformationScript.navBlock.selector.nav = "#nav";
$(".footer").attr("id","footer");
_EsdDynamicTransformationScript.navBlock.selector.footer = "#footer";
$(".main").attr("id","main");
_EsdDynamicTransformationScript.navBlock.selector.main = "#main";


//内容页
if( $(".newsly_ly").length > 0 ){
$(".news_ly").attr("id","content");
_EsdDynamicTransformationScript.navBlock.selector.content = "#content";

$(".gly_ly").addClass("navBlock");
$(".news_ly").addClass("navBlock");
$(".main .clearfix").addClass("navBlock");

_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; // 激活的采用class因为会激活多个
}

//含面包屑导航（非首页）
if( $(".gly_ly").length > 0 ){
$(".glyleft_ly").attr("id","content");
_EsdDynamicTransformationScript.navBlock.selector.content = "#content";

$(".gly_ly").addClass("navBlock");
$(".glyleft_ly").addClass("navBlock");
$(".glyright_ly").addClass("navBlock");
$(".main .clearfix").addClass("navBlock");

_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; // 激活的采用class因为会激活多个
}


if(location.href=="http://gxt.jl.gov.cn/" || location.href=="http://gxt.jl.gov.cn/index.html"){
//首页

// 主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
$(".header .top").attr("id","header");
_EsdDynamicTransformationScript.navBlock.selector.top = "#header";

//首页有nav的id
_EsdDynamicTransformationScript.navBlock.selector.nav = "#nav";
$(".footer").attr("id","footer");
_EsdDynamicTransformationScript.navBlock.selector.footer = "#footer";
$(".main").attr("id","main");
_EsdDynamicTransformationScript.navBlock.selector.main = "#main";
$(".main .itembox02 .left:first").attr("id","left");
_EsdDynamicTransformationScript.navBlock.selector.left = "#left";
$(".main .itembox02 .right:first").attr("id","right");
_EsdDynamicTransformationScript.navBlock.selector.right = "#right";

_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
// 给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
$(".main .itembox01 .left:eq(0)").addClass("navBlock");
$(".main .itembox01 .right").addClass("navBlock");
$(".main .itembox02 .left .wjfgbox").addClass("navBlock");
$(".main .itembox02 .left .ws_logo").addClass("navBlock");
$(".main .itembox02 .left .wjfgbox").addClass("navBlock");
$(".main .itembox02 .left .ws_hdjl").addClass("navBlock");
$(".main .itembox02 .right .zyxxzzbox").addClass("navBlock");
$(".main .itembox02 .right .rdzt").addClass("navBlock");
$(".main .itembox02 .right .xxgkzl").addClass("navBlock");
$(".main .itembox02 .right .xxgkzlb").addClass("navBlock");
$(".main .itembox02 .right .zzsjk1:eq(0)").addClass("navBlock");
$(".main .itembox02 .right .zzsjk1:eq(1)").addClass("navBlock");
$(".main .links").addClass("navBlock");

_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; // 激活的采用class因为会激活多个

}

if(location.href=="http://gxt.jl.gov.cn/gxdt1/"){
// 工信动态
// 主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
$(".header").attr("id","header");
_EsdDynamicTransformationScript.navBlock.selector.top = "#header";

_EsdDynamicTransformationScript.navBlock.selector.nav = "#nav";
$(".footer").attr("id","footer");
_EsdDynamicTransformationScript.navBlock.selector.footer = "#footer";
$(".main").attr("id","main");
_EsdDynamicTransformationScript.navBlock.selector.main = "#main";
$(".main .itembox02>.left").attr("id","left");
_EsdDynamicTransformationScript.navBlock.selector.left = "#left";
$(".main .itembox02>.right").attr("id","right");
_EsdDynamicTransformationScript.navBlock.selector.right = "#right";

_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
// 给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
$(".main .itembox02>.left>div").addClass("navBlock");
$(".main .itembox02>.right>div").addClass("navBlock");

_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; // 激活的采用class因为会激活多个

}

if(location.href=="http://gxt.jl.gov.cn/ggfw/"){
// 公共服务
// 主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
$(".header").attr("id","header");
_EsdDynamicTransformationScript.navBlock.selector.top = "#header";

_EsdDynamicTransformationScript.navBlock.selector.nav = "#nav";
$(".footer").attr("id","footer");
_EsdDynamicTransformationScript.navBlock.selector.footer = "#footer";
$(".main").attr("id","main");
_EsdDynamicTransformationScript.navBlock.selector.main = "#main";

_EsdDynamicTransformationScript.navBlock.selector.left = "#left";

_EsdDynamicTransformationScript.navBlock.selector.right = "#right";

_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
// 给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
$(".main .rdfw_ly >div").addClass("navBlock");

_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; // 激活的采用class因为会激活多个

}

if(location.href=="http://gxt.jl.gov.cn/xxgk/jgzn/" || location.href=="http://gxt.jl.gov.cn/hdjl/" || location.href=="http://gxt.jl.gov.cn/sjtb_1/" || location.href=="http://gxt.jl.gov.cn/gdtp/"){
// 导航的其它二级页
// 主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
$(".header").attr("id","header");
_EsdDynamicTransformationScript.navBlock.selector.top = "#header";

_EsdDynamicTransformationScript.navBlock.selector.nav = "#nav";
$(".footer").attr("id","footer");
_EsdDynamicTransformationScript.navBlock.selector.footer = "#footer";
$(".main").attr("id","main");
_EsdDynamicTransformationScript.navBlock.selector.main = "#main";

_EsdDynamicTransformationScript.navBlock.selector.left = "#left";

_EsdDynamicTransformationScript.navBlock.selector.right = "#right";

_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
// 给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
$(".main>div").addClass("navBlock");

_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; // 激活的采用class因为会激活多个

}

if(location.href=="http://gxt.jl.gov.cn/hdjl/myqyts/"){
// 民营企业投诉信箱
// 主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
_EsdDynamicTransformationScript.navBlock.selector.top = "#header";
_EsdDynamicTransformationScript.navBlock.selector.nav = "#nav";
$("table:last").attr("id","footer");
_EsdDynamicTransformationScript.navBlock.selector.footer = "#footer";
$("iframe:eq(0)").attr("id","main");
_EsdDynamicTransformationScript.navBlock.selector.main = "#main";
_EsdDynamicTransformationScript.navBlock.selector.left = "#left";
_EsdDynamicTransformationScript.navBlock.selector.right = "#right";
_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
// 给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
$("iframe:eq(0)").addClass("navBlock");
_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; // 激活的采用class因为会激活多个
}


if(location.href=="http://gxt.jl.gov.cn/hdjl/zxzxx/zxzx.html"){
// 在线咨询
// 主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
$(".wrap").attr("id","header");
_EsdDynamicTransformationScript.navBlock.selector.top = "#header";
_EsdDynamicTransformationScript.navBlock.selector.nav = "#nav";
$(".footer").attr("id","footer");
_EsdDynamicTransformationScript.navBlock.selector.footer = "#footer";
$(".zx_main").attr("id","main");
_EsdDynamicTransformationScript.navBlock.selector.main = "#main";
_EsdDynamicTransformationScript.navBlock.selector.left = "#left";
_EsdDynamicTransformationScript.navBlock.selector.right = "#right";
_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
// 给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
$("table").addClass("navBlock");
_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; // 激活的采用class因为会激活多个

}

if(location.href=="http://gxt.jl.gov.cn/hdjl/tzxx_1/tz/"){
// 厅长信箱
// 主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
$(".wrap").attr("id","header");
_EsdDynamicTransformationScript.navBlock.selector.top = "#header";
$(".leftdh:eq(0)").attr("id","nav");
_EsdDynamicTransformationScript.navBlock.selector.nav = "#nav";
$("table:last").attr("id","footer");
_EsdDynamicTransformationScript.navBlock.selector.footer = "#footer";
$("table:first").attr("id","main");
_EsdDynamicTransformationScript.navBlock.selector.main = "#main";
$(".leftdha").parent().parent().attr("id","left");
_EsdDynamicTransformationScript.navBlock.selector.left = "#left";
$("#myiframe").parent().attr("id","right");
_EsdDynamicTransformationScript.navBlock.selector.right = "#right";
_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
// 给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
$(".leftdha").parent().parent().addClass("navBlock");
$("#myiframe").parent().addClass("navBlock");
_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; // 激活的采用class因为会激活多个
}



/**
* 区域导航、调试开关
*/

$(document).bind("keydown.keydown_9001", function(e) {
if (e.shiftKey && e.keyCode == 20) {
$("*").focus(function() {
$(this).css({
"outline" : "2px dashed red"
});
});
$("*").blur(function() {
$(this).css({
"outline" : "0px black"
});
});
}
});

_EsdDynamicTransformationScript.navBlock.debug = true; // 是否是调试模式，调试模式有红边线，非调试模式关闭红边框
_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; // 激活的采用class因为会激活多个
// 快捷键定义区
//_EsdDynamicTransformationScript.navBlock.key = {};

//_EsdDynamicTransformationScript.navBlock.key.top = "alt+1"; // (top)
//_EsdDynamicTransformationScript.navBlock.key.nav = "alt+2"; // (nav)
//_EsdDynamicTransformationScript.navBlock.key.main = "alt+3"; // (main)
//_EsdDynamicTransformationScript.navBlock.key.content = "alt+4"; // (content)
//_EsdDynamicTransformationScript.navBlock.key.left = "alt+5"; // (left)
//_EsdDynamicTransformationScript.navBlock.key.right = "alt+6"; // (right)
//_EsdDynamicTransformationScript.navBlock.key.footer = "alt+7"; // (footer)
//_EsdDynamicTransformationScript.navBlock.key.down = "alt+8"; // (down)
//_EsdDynamicTransformationScript.navBlock.key.up = "alt+9"; // (up);

// 以下变量主要用于区块跳转
_EsdDynamicTransformationScript.navBlock.sIndex = -1; // 当前栏目下标
_EsdDynamicTransformationScript.navBlock.maxIndex = -1; // 保存目前所有class="navBlock"的区域块总数量，栏目总量下标。
_EsdDynamicTransformationScript.navBlock.minIndex = 0; // 栏目数量起始下标

// 主要代码区域

// 导航跳转
_EsdDynamicTransformationScript.navBlock.keyShowSelect = function(i) {
$(_EsdDynamicTransformationScript.navBlock.selector.activate).each(function(index, el) {
if (i == index) {
_EsdDynamicTransformationScript.navBlock.debugView(el);
$(el).find("a").each(function(i, e) {
if (i == 0) {
$(e).focus();
}
});

}
});
}

// 获取所有class=navBlock的区域的总数量，初始化轮训所有需要跳转的块
$(_EsdDynamicTransformationScript.navBlock.selector.activate).each(function(index, ehx) {
_EsdDynamicTransformationScript.navBlock.maxIndex++;
});



// 快捷键功能区域
// 跳转到头部alt+1(49)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 49) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.top);
}

});
// 跳转到导航alt+2(50)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 50) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.nav);
}

});
// 跳转到主要区域alt+3(51)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 51) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.main);
}
});

// 跳转到正文区域alt+4(52)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 52) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.content);
}
});

// 跳转到左区域alt+5(53)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 53) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.left);
}
});

// 跳转到右区域alt+6(54)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 54) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.right);
}
});
// 跳转到底部alt+7(55)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 55) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.footer);
}
});
//前进alt+8(56)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 56) {
if (_EsdDynamicTransformationScript.navBlock.sIndex < _EsdDynamicTransformationScript.navBlock.maxIndex) {
_EsdDynamicTransformationScript.navBlock.sIndex++;
_EsdDynamicTransformationScript.navBlock.keyShowSelect(_EsdDynamicTransformationScript.navBlock.sIndex);
}
}
});

// 后退alt+9(57)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 57) {
if (_EsdDynamicTransformationScript.navBlock.sIndex > _EsdDynamicTransformationScript.navBlock.minIndex) {
_EsdDynamicTransformationScript.navBlock.sIndex--;
_EsdDynamicTransformationScript.navBlock.keyShowSelect(_EsdDynamicTransformationScript.navBlock.sIndex);
}
}
});
// 特定区域跳转
_EsdDynamicTransformationScript.navBlock.keySelectScroll = function(id) {
if ($(id).length > 0) {
_EsdDynamicTransformationScript.navBlock.appendIns(id,true);//插入ins
_EsdDynamicTransformationScript.navBlock.debugView(id);
$(id).find("a").each(function(index) {
if (index == 0) {
$(this).focus();
}
});
_EsdDynamicTransformationScript.navBlock.appendIns(id,false);//清楚ins
} else {
}

}
//为了解决漂浮高等于0的情况下区域显示是一条线
_EsdDynamicTransformationScript.navBlock.appendIns=function(id,b){
if(b==true){
$(id).append("<ins id='esdNavBlockIns' style='clear: both;display: block;'></ins>")
}else{
$("#esdNavBlockIns").remove();
}
}

if (_EsdDynamicTransformationScript.navBlock.debug == true) {
// 如果开启调试模式，添加调试绘制矩形边线
$("body").append("<div id='show_top' class='lineshow'></div>");
$("body").append("<div id='show_bottom' class='lineshow'></div>");
$("body").append("<div id='show_left' class='lineshow'></div>");
$("body").append("<div id='show_right' class='lineshow'></div>");
$(".lineshow").css({
"display" : "none"
});
}
// 开启调试模式后会显示红边
_EsdDynamicTransformationScript.navBlock.debugView = function(e) {
if (_EsdDynamicTransformationScript.navBlock.debug == true) {
var x = $(e).offset();
//var w = parseInt($(e).css("width"));
var w = $(e).outerWidth();//返回元素的宽度（包含 padding 和 border）
//var h = parseInt($(e).css("height"));
var h = $(e).outerHeight();//返回元素的高度（包含 padding 和 border）
$("#show_top").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left,
"width" : w,
"height" : "0px"
});
$("#show_bottom").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top + h,
"left" : x.left,
"width" : w,
"height" : "0px"
});
$("#show_left").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left,
"width" : "0px",
"height" : h
});
$("#show_right").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left + w,
"width" : "0px",
"height" : h
});
$("html,body").animate({
scrollTop : $("#show_top").offset().top
}, 200);
$(".lineshow").css({
"display" : "block"
});
}
}
};
/**
* 主入口方法
*/

if (window.jQuery == undefined) {
var wzaInitInterval = setInterval(function(){
if(document.body!=null){
clearInterval(wzaInitInterval);
//			var originalWindowOnload = null;
//			if(window.onload!=null){
//				originalWindowOnload = window.onload;
//			}
document.body.onload = function(){
//				originalWindowOnload();
var esdJquery = document.createElement("script");
esdJquery.setAttribute("type", "text/javascript");
esdJquery.setAttribute("src", window.location.protocol + "//" + window.location.href.split("/")[2] + "/wza/bwscript/jquery-1.12.4.min.js");
esdJquery.setAttribute("charset", "utf-8");
esdJquery.setAttribute("id", "ESDWebAppInnerIframe");
document.body.appendChild(esdJquery);
var jqueryLoadInterval = setInterval(function () {
if (window.jQuery != undefined) {
clearInterval(jqueryLoadInterval);
setTimeout( _EsdDynamicTransformationFunction(jQuery) , 1000 );
//						_EsdDynamicTransformationFunction(jQuery)
}
}, 500);
};
}
}, 10);
} else {
jQuery(function(){
setTimeout( _EsdDynamicTransformationFunction(jQuery) , 1000 );
//		_EsdDynamicTransformationFunction(jQuery)
})

}
